<%--
 *  File:    ApprovalFailTempDetail.jsp
 *  @Author: Saraxia 
 *  Date:    2012/11/15
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval. 
--%>
 

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.ApprovalFailTempDetail"); 
%>

<% //--------------------------------------  variant and initialization --%>
<%
    String strModuleName = "PCM";
  	String strTableName = "";
  	String privilegeCode = "11601";
  	String contextPath = request.getContextPath();
%>



<%
  	HashMap CurUserInfo = (HashMap)session.getAttribute("userinfo");

String strFromuserid = (CurUserInfo.get("userid")).toString();
%>

<% //--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>


<html>
<head>
<title>ApprovalFailTempDetail</title>
<PageFlow:CheckPageFlow pageName="approvalfailtempdetail"/>
<% //--------------------------------------  output variant from pageflow --%>
<%

  	Vector userGroupSummary = (Vector)pageContext.getAttribute("ugsummary");
  	if(userGroupSummary == null)
  	{
    	userGroupSummary = new Vector();
  	}
  	
  	Vector oldptotalsummary = (Vector)pageContext.getAttribute("oldptotalsummary");
  	if(oldptotalsummary == null)
  	{
  		oldptotalsummary = new Vector();
  	}

  	HashMap prohash = (HashMap)pageContext.getAttribute("prohash");
  	if(prohash == null) prohash = new HashMap();
  	
  	String subjectcode = (String)pageContext.getAttribute("subjectcode");
  	
	//out.println(prohash);
%>

<%@ include file="/inc/InitEdit.inc" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/boxover.js"></script>
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/opal2/mootools.js"></script>
<%@ include file="/inc/SummaryDivision.inc" %>
<iframe name="reloadHandler" style="display:none" ></iframe>
<script>

function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(usergroupsummaryform,actionvalue,orderbyname);
  editform.action = "ApprovalFailTempDetail.jsp?<%= OvalTools.randomURL() %>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();  
}


function allcheckselect(){
	var allcheck = usergroupsummaryform.allcheck.checked;
	var alldatafile = document.getElementsByName('batchnoidstr');
	var length = alldatafile.length;
	if(allcheck){
		for(var i = 0 ; i < length;i++){
			alldatafile[i].checked = true;
		}
	}else{
		for(var i = 0 ; i < length;i++){
			alldatafile[i].checked = false;
		}	
	}
}


function editMode(obj,index,name,id) {
    if ($(name + index) == null) {
        var c = Trim(obj.innerText);
        var t = new Element('input', {
            'type':'text',
            'value':c,
            'styles':{
                    'width':'500px'
                     },
            'id':name + index,
            'name':name,
            'events':{
                'blur':function() {
                    saveData(this,id,c);
                },
                'keydown':function() {
                    if (event.keyCode == 13) {
                        saveData(this,id,c);
                    }
                }
            }
        });
       
        obj.innerHTML = '&nbsp;';
        t.inject(obj);
        selectText(t);
    }
}

function saveData(obj,id,c) {
    var p = obj.parentNode;
    var fromusrid= document.usergroupsummaryform.fromuserid.value ;
    var subjectcode = document.usergroupsummaryform.subjectcode.value ;
    var begindate = document.usergroupsummaryform.begindate.value ;
    p.innerHTML = obj.value;
    var req = new Request({
        'url':'<%=contextPath%>/Dispatcher',
        'method':'get',
        'data':'pagename=approvalfailtempdetail&actionname=save&columnname=' + obj.name + '&columnvalue='+ encodeURI(obj.value) + '&transactionid=' + id+'&transactioncode=' + id +'&fromuserid='+fromusrid+ '&subjectcode='+subjectcode+'&begindate='+begindate
    });
    req.send(); 
    window.location.reload();
}



//选中文本框中的字符
function editModeText(obj,index,name,id) {
	
if ($(name + index) == null) {
 var c = Trim(obj.innerText);
 var t = new Element('input', {
     'type':'text',
     'value':c,
     'styles':{
             'width':'150px'
              },
     'id':name + index,
     'name':name,
     'events':{
         'blur':function() {
             saveDataText(this,id,c);
         },
         'keydown':function() {
             if (event.keyCode == 13) {
                 saveDataText(this,id,c);
             }
         }
     }
 });

 obj.innerHTML = '';
 t.inject(obj);
 selectText(t);
}
}

function saveDataText(obj,id,c) {
var p = obj.parentNode;
if(Trim(obj.value) == ""){
  // alert("不能为空！");
   p.innerHTML =  "&nbsp;"+c;
   return;
}
if(parseFloat(obj.value) == parseFloat(c)){
   p.innerHTML = obj.value;
	   return;
}
p.innerHTML = obj.value;
var req = new Request({
    'url':'<%=contextPath%>/Dispatcher',
    'method':'get',
    'data':'pagename=approvalfailtempdetail&actionname=edit&columnname=' + obj.name + '&columnvalue='+ encodeURI(obj.value) + '&zylpharmacyapproveid=' + id +'&subjectcode='+<%= subjectcode %>
});
req.send(); 
//location.reload() ;
}

//选中文本框中的字符



function selectText(obj) {
    var range = obj.createTextRange();
    range.moveStart("character", 0);
    range.select();
}

/*
function page_update(){
	
    if(isNullChecked(usergroupsummaryform.brandcodes))
    {
        alert("<%= message.getMessageDesc("PLEASE_SELECT") %>");
        return;
    }

	var alldatafile = document.getElementsByName('brandcodes');
	var length = alldatafile.length;
		for(var i=0;i<length;i++){
	      var j=i+1;
		  if(alldatafile[i].checked){
		    var approvalproposal=eval("document.usergroupsummaryform.approvalproposal111"+j).value;
			if(approvalproposal=="")
			{
				alert("<%= message.getMessageDesc("VALUE_NOT_NULL",label.getLabelName("L_Approve",false)) %>");
		        return;
			}
		  }
		}
    
	document.usergroupsummaryform.actionname.value = "update";
	document.usergroupsummaryform.target = "_self";
    isRunning = true;
	document.usergroupsummaryform.submit();
}

function page_agree(){
	
    if(isNullChecked(usergroupsummaryform.brandcodes))
    {
        alert("<%= message.getMessageDesc("PLEASE_SELECT") %>");
        return;
    }

	document.usergroupsummaryform.actionname.value = "agree";
	document.usergroupsummaryform.target = "_self";
    isRunning = true;
	document.usergroupsummaryform.submit();
}

function page_disagree(){
    if(isNullChecked(document.usergroupsummaryform.brandcodes))
    {
        alert("<%= message.getMessageDesc("PLEASE_SELECT") %>");
        return;
    }

	var alldatafile = document.getElementsByName('brandcodes');
	var length = alldatafile.length;
		for(var i=0;i<length;i++){
	      var j=i+1;
		  if(alldatafile[i].checked){
		    var approvalproposal=eval("document.usergroupsummaryform.nc0"+j).value;
			if(approvalproposal=="")
			{
				alert("<%= message.getMessageDesc("VALUE_NOT_NULL",label.getLabelName("L_Approve",false)) %>");
		        return;
			}
		  }
		}
	document.usergroupsummaryform.actionname.value = "disagree";
	document.usergroupsummaryform.target = "_self";
    isRunning = true;
	document.usergroupsummaryform.submit();
}
*/
function page_done(a_str)

{ 
 var approvalnoteseditform= document.usergroupsummaryform;
 if(isNullChecked(approvalnoteseditform.batchnoidstr))
    {
        alert("<%= message.getMessageDesc("PLEASE_SELECT") %>");
        return;
    }
 var alldatafile = document.getElementsByName('batchnoidstr');
 var length = alldatafile.length;
 for(var i = 0 ; i < length;i++){
  if (alldatafile[i].checked){
  
	var objstatus=eval('usergroupsummaryform.status'+i);
	
	 if ( objstatus.value!=20){
        alert("<%=message.getMessageDesc("J_STATUS_CHECK_ERROR")%>");
      return;
  }
  }
 }

 if(a_str=="agree")
    {
      if (isAllSpace(approvalnoteseditform.nt0.value)){
     
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Agree",false)%>";
      }else{
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Agree",false) + label.getLabelName("L_Colon")%>"+approvalnoteseditform.nt0.value;
      }
    	approvalnoteseditform.actionname.value = "approvepassed";
    }else if(a_str=="deny"){
   
      if (isAllSpace(approvalnoteseditform.nt0.value)){
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Refuse",false)%>";
      }else{
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Refuse",false) + label.getLabelName("L_Colon")%>"+approvalnoteseditform.nt0.value;
      }
        approvalnoteseditform.actionname.value = "approvedenied";
    }
    else if(a_str=="disagree"){
   
      if (isAllSpace(approvalnoteseditform.nt0.value)){
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_NotAgree",false)%>";
      }else{
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_NotAgree",false) + label.getLabelName("L_Colon")%>"+approvalnoteseditform.nt0.value;
      }
        approvalnoteseditform.actionname.value = "approvepassed";
        
    }
   
    setValue();
   
    approvalnoteseditform.pagename.value="approvalnotesedit";
    approvalnoteseditform.target = "_self";
    isRunning = true;
    approvalnoteseditform.submit();
    }
    
    function setValue()
{
   var frm = document.usergroupsummaryform;
   frm.nt1.value = frm.nt0.value;
   frm.nc1.value = frm.nc0.value;
}
function page_back(){

	var subjectcode =document.usergroupsummaryform.subjectcode.value;
	self.location.href ="ApprovalFailSummary.jsp?<%= OvalTools.randomURL() %>"+"&globalpccode=112"+"&subjectcode="+subjectcode;
}
function page_approval()
{
  var frm = document.usergroupsummaryform;

  frm.pagename.value = "approvalfailsummary";
  frm.actionname.value = "approve";
  frm.target = "_parent";
  isRunning = true;
  frm.submit();

}
</script>

<%
String strLanguageCode0;
  String strLanguageCode1;
  if(strLanguageCode.equalsIgnoreCase("cn"))
  {
	strLanguageCode0 = "cn";
	strLanguageCode1 = "en";
  }else{
	strLanguageCode0 = "en";
	strLanguageCode1 = "cn";    
  }%>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

	<% //--------------------------------------  hidden form variant --%>
	<form name="usergroupsummaryform" method="post" action="../../Dispatcher"  target="_parent">
    <input type="hidden" name="pagename" value="approvalfailtempdetail">
    <input type="hidden" name="actionname">
    <input type="hidden" name="languagecode" value="<%= strLanguageCode %>">

    <input type="hidden" name="subjectcode" value="<%=subjectcode %>"/>
    <input type="hidden" name="globalpccode" value="112">

    <input type="hidden" name="fromuserid" value="<%=JspHelper.filterNull( strFromuserid)%>">
    <input type="hidden" name="begindate" value="<%=JspHelper.filterNull( new java.sql.Date(new java.util.Date().getTime()) )%>">
       <input type="hidden" name="languagecode0" value="<%= strLanguageCode0 %>">
    <input type="hidden" name="languagecode1" value="<%= strLanguageCode1 %>">
    <input type="hidden" name="nt0">
      <input type="hidden" name="nt1">
        <input type="hidden" name="nc1">
          <input type="hidden" name="nc0">
    <input type="hidden" name="numrows" value="2">
	<% //--------------------------------------  page location --%>
	<%@ include file="/inc/PageLocation.inc" %>
	
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
  	<tr> 
    	<td valign="top"> 
    		<table width="100%" border="0" cellspacing="0">
          	<tr><td class="summary_top" ></td></tr>
        	</table>
        </td>
   	</tr>
   	</table>
<div style="overflow:auto;width:1230;height:400">   
   	<table width="6600"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
 	   <% if (subjectcode.equals("805")){  %>
 	  <tr class="deepblue-left">
              <td class="title_center"   width="1%">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center" width="1%"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center" width="1%"><%= label.getLabelName("L_ApprovalStatus") %> </td>			  
              <td class="title_center" width="1%"><%= label.getLabelName("L_Approve") %> </td>
              <td class="title_center" width="1%"><%= label.getLabelName("L_Custom Code") %></td>
              <td class="title_center"  width="1%"><%= label.getLabelName("L_YlCode") %></td>
              <td class="title_center"  width="6%"><%= label.getLabelName("L_CustomerName") %></td>
              <td class="title_center"  width="1%"><%= label.getLabelName("L_StatusName") %></td>
              <td class="title_center"  width="1%" ><%= label.getLabelName("L_Province") %></td>
              <td class="title_center"  width="1%"><%= label.getLabelName("L_YLCounty") %></td>
              <td class="title_center"   ><%= label.getLabelName("L_Address") %></td>
              <td class="title_center"   ><%= label.getLabelName("L_Zip") %></td>
              <td class="title_center"    ><%= label.getLabelName("L_Telephone") %></td>
              <td class="title_center"  ><%= label.getLabelName("L_Fax") %></td>
              <td class="title_center"   ><%= label.getLabelName("L_Comments") %></td>
              
              <td class="title_center"   nowrap="nowrap"><%= label.getLabelName("L_Manager1") %></td>
              <td class="title_center"   nowrap="nowrap"><%= label.getLabelName("L_TurnOver") %></td>
              <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_YLsaleroom") %></td>
	      	  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_Bizarea") %></td> 
	      	           
              <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_IsProtocol") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_CUSTOMTYPE") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ISCHAIN") %><%= label.getLabelName("L_Property") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_DrugstoreLevel") %></td>
			  
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ParentOrg") %><%= label.getLabelName("L_Code") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ParentOrg") %><%= label.getLabelName("L_Name") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_countyorgcode") %><%= label.getLabelName("L_Code") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_countyorgcode") %><%= label.getLabelName("L_Name") %></td>
			  <!-- 
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_countyorgcode") %></td>
			   -->
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_IsParity") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_IsMedicalInsurance") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_IsBaseMedicineTerminal") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_QuickCode") %></td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>1</td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>2</td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>3</td>
			  <td class="title_center"  nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>4</td>
			  <td class="title_center"  wnowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>5</td>
	     </tr>
 	  <% } %>  
	 <% if (subjectcode.equals("806")){  %>
            <tr class="deepblue-left">
              <td class="title_center" rowspan="2" width="1%">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_SlipCode") %> </td>		
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_ApprovalStatus") %> </td>			  
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_Approve") %> </td>
              
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_OrgCode") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_YlCode") %></td>
              <td class="title_center" rowspan="2" width="4%"><%= label.getLabelName("L_OrgName") %></td>
               <!-- 
			  <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>1</td>	
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>2</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>3</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>4</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>5</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>6</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>7</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>8</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>9</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>10</td>
 -->
 
        <td class="title_center" colspan="3"><%=prohash.get("productgroupidname1")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+1 : prohash.get("productgroupidname1")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname2")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+2 : prohash.get("productgroupidname2")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname3")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+3 : prohash.get("productgroupidname3")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname4")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+4 : prohash.get("productgroupidname4")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname5")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+5 : prohash.get("productgroupidname5")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname6")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+6 : prohash.get("productgroupidname6")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname7")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+7 : prohash.get("productgroupidname7")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname8")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+8 : prohash.get("productgroupidname8")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname9")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+9 : prohash.get("productgroupidname9")%>&nbsp;</td>
		<td class="title_center" colspan="3"><%=prohash.get("productgroupidname10")== null ? label.getLabelName("L_Product")+label.getLabelName("L_GroupNo")+10 : prohash.get("productgroupidname10")%>&nbsp;</td>
               
            </tr>
			<tr class="deepblue-left">
             <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
            </tr>
 <% } %>
 
   
 

<% if (subjectcode.equalsIgnoreCase("902")){  %>
 	 <tr class="deepblue-left">
            <td class="title_center"   rowspan="2" width="1%">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_ApprovalStatus") %>1</td>
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_ApprovalStatus") %>2</td>			  
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_Approve") %>1</td>
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_Approve") %>2</td>
              
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_ApprovelComments") %></td>
              
              <td class="title_center" rowspan="2" width="1%"><%= label.getLabelName("L_Custom Code") %></td>
              <td class="title_center"  rowspan="2" width="1%"><%= label.getLabelName("L_YlCode") %></td>
              <td class="title_center"  rowspan="2" width="6%"><%= label.getLabelName("L_CustomerName") %></td>
              <td class="title_center"  rowspan="2" width="1%"><%= label.getLabelName("L_StatusName") %></td>
              <td class="title_center"  rowspan="2" width="1%" ><%= label.getLabelName("L_Province") %></td>
              <td class="title_center"  rowspan="2" width="1%"><%= label.getLabelName("L_City") %></td>
              <td class="title_center"  rowspan="2" ><%= label.getLabelName("L_RegisteredAddress") %></td>
              <td class="title_center"  rowspan="2" ><%= label.getLabelName("L_Zip") %></td>
              <td class="title_center"  rowspan="2"  ><%= label.getLabelName("L_Telephone") %></td>
              <td class="title_center" rowspan="2" ><%= label.getLabelName("L_Fax") %></td>
              <td class="title_center"  rowspan="2" ><%= label.getLabelName("L_Comments") %></td>
              
              <td class="title_center" rowspan="2"  nowrap="nowrap"><%= label.getLabelName("L_Manager1") %></td>
              <td class="title_center"  rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_TurnOver") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_YLsaleroom") %></td>
			  <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_Bizarea") %></td>
			            
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_IsProtocol") %></td>
              <td class="title_center"  rowspan="2" width="4%"><%= label.getLabelName("L_CUSTOMTYPE") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ISCHAIN") %><%= label.getLabelName("L_Property") %></td>
              <td class="title_center"  rowspan="2" width="4%"><%= label.getLabelName("L_DrugstoreLevel") %></td>
              
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ParentOrg") %><%= label.getLabelName("L_Code") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ParentOrg") %><%= label.getLabelName("L_Name") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_countyorgcode") %><%= label.getLabelName("L_Code") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_countyorgcode") %><%= label.getLabelName("L_Name") %></td>
              <!-- 
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_countyorgcode") %></td>
               -->
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_IsParity") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_IsMedicalInsurance") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_IsBaseMedicineTerminal") %></td>
              <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_QuickCode") %></td>
			  <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>1</td>
			  <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>2</td>
			  <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>3</td>
			  <td class="title_center" rowspan="2" nowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>4</td>
			  <td class="title_center" rowspan="2" wnowrap="nowrap"><%= label.getLabelName("L_ExInfo") %>5</td>
			  <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>1</td>	
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>2</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>3</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>4</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>5</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>6</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>7</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>8</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>9</td>
              <td class="title_center" colspan="3"><%= label.getLabelName("L_Product")+label.getLabelName("L_GroupNo") %>10</td>
               </tr>
             <tr class="deepblue-left">
             <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
              <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
              <td class="title_center"><%= label.getLabelName("L_SalesRepCode") %></td>
			  <td class="title_center"><%= label.getLabelName("L_SalesRepName") %></td>
            </tr>
 <% }%>
   


	

 
 	 
			
	<% //--------------------------------------  default value definition --%>
    <%
    	int i=0;
        Integer nDefaultzyldealerapproveid = new Integer(-1);               
        String strClassType = new String(); 
        boolean bHasChecked = false;
        String strDefaultIsDisabled="";
      
   	%>
   	
    <% //--------------------------------------  loop results --%>
     <span id="olddetail" >
    <logic:iterate id="usergroup" collection="<%= userGroupSummary %>" indexId="idx" scope="page">                      
    	
    <%
    	HashMap userGroupMap = (HashMap)pageContext.getAttribute("usergroup"); 
        String strIsDisabled = "";
        String strIsChecked = "";
            
        if(i%2==0){
            strClassType="td-listrom";
        } else{
            strClassType="none";
        } 
       if(!bHasChecked)
        {
	        strIsChecked = "Checked";                       
            bHasChecked = true;
            nDefaultzyldealerapproveid = (Integer)(userGroupMap.get("zyldealerapproveid"));
           
          	strDefaultIsDisabled = strIsDisabled;            
        }  
       i++;
  	%>
    
    <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'" class="<%=JspHelper.filterNull( strClassType )%>">
 <%  if (subjectcode.equals("805")){  %>
                             <td class="title_center">
              <custom:checkbox property="zylpharmacyapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" />
              </td>
              <td><custom:write property="zylpharmacyapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="approvename" name="usergroup"  nbsp="true"/></td>
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&transactioncode=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&subjectcode=<%=subjectcode%>&batchno=<custom:write name="usergroup" property="batchno"/>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
				<%
              //userGroupMap
              HashMap row=null;
              for(int ii=0;ii<oldptotalsummary.size();ii++){
            	  if(userGroupMap.get("orgcode")!=null){
	            	  if(((String)userGroupMap.get("orgcode")).equals(((String)(((HashMap)oldptotalsummary.get(ii)).get("orgcode"))))){
	            		  row=(HashMap)oldptotalsummary.get(ii);
	            		  //out.print(row);
	            	  }
              		}  
              }
              pageContext.setAttribute("row",row);
              if(row == null) {
              %>
              <td><font color="green"><custom:write property="orgcode" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="yl_orgcode" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="orgname" name="usergroup"  nbsp="true"/></font></td>
              <custom:hidden property="basestatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              <td><font color="green"><custom:write property="statusname" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="regionname" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="cityname" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="registeraddress" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="zipcode" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="telephone" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="fax" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="comments" name="usergroup"  nbsp="true"/></font></td>
              
              <td><font color="green"><custom:write property="manager" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="turnover" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="ylsaleroom" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="bizarea" name="usergroup"  nbsp="true"/></font></td>
              
              <td><font color="green"><custom:write property="isprotocol" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="customtype" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="channeltype" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="level1" name="usergroup"  nbsp="true"/></font></td>
              
              <td><font color="green"><custom:write property="parentorgcode" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="parentorgname" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="countyorgcode" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="countyorgname" name="usergroup"  nbsp="true"/></font></td>
              
              <td><font color="green"><custom:write property="isparity" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="ismedicalinsurance" name="usergroup"  nbsp="true"/></font></td>
	          <td><font color="green"><custom:write property="yesornodelivery" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="spellcn" name="usergroup"  nbsp="true"/></font></td>
              
              <td><font color="green"><custom:write property="attr101" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="attr102" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="attr103" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="attr104" name="usergroup"  nbsp="true"/></font></td>
              <td><font color="green"><custom:write property="attr105" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
              <td><custom:write property="orgcode" name="usergroup"  nbsp="true"/></td>
              <td>
                <p title="<%=(String)row.get("yl_orgcode") %>" style="color: red;" id="yl_orgcode_<%=idx %>"><custom:write property="yl_orgcode" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="yl_orgcode" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="yl_orgcode" changedName="oldyl_orgcode" name="row"   colIndex="<%=idx %>" />
              </td>  
              <td>
                <custom:write property="orgname" name="usergroup"  nbsp="true"/> <custom:hidden property="basestatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("statusname") %>" style="color: red;" id="statusname_<%=idx %>"><custom:write property="statusname" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="statusname" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="statusname" changedName="oldstatusname" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("regionname") %>" style="color: red;" id="regionname_<%=idx %>"><custom:write property="regionname" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="regionname" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="regionname" changedName="oldregionname" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("cityname") %>" style="color: red;" id="cityname_<%=idx %>"><custom:write property="cityname" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="cityname" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="cityname" changedName="oldcityname" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("registeraddress") %>" style="color: red;" id="registeraddress_<%=idx %>"><custom:write property="registeraddress" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="registeraddress" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="registeraddress" changedName="oldregisteraddress" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("zipcode") %>" style="color: red;" id="zipcode_<%=idx %>"><custom:write property="zipcode" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="zipcode" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="zipcode" changedName="oldzipcode" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("telephone") %>" style="color: red;" id="telephone_<%=idx %>"><custom:write property="telephone" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="telephone" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="telephone" changedName="oldtelephone" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("fax") %>" style="color: red;" id="fax_<%=idx %>"><custom:write property="fax" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="fax" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="fax" changedName="oldfax" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("comments") %>" style="color: red;" id="comments_<%=idx %>"><custom:write property="comments" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="comments" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="comments" changedName="oldcomments" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("manager") %>" style="color: red;" id="manager_<%=idx %>"><custom:write property="manager" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="manager" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="manager" changedName="oldmanager" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("turnover") %>" style="color: red;" id="turnover_<%=idx %>"><custom:write property="turnover" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="turnover" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="turnover" changedName="oldturnover" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("ylsaleroom") %>" style="color: red;" id="ylsaleroom_<%=idx %>"><custom:write property="ylsaleroom" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="ylsaleroom" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="ylsaleroom" changedName="oldylsaleroom" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("bizarea") %>" style="color: red;" id="bizarea_<%=idx %>"><custom:write property="bizarea" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="bizarea" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="bizarea" changedName="oldbizarea" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("isprotocol") %>" style="color: red;" id="isprotocol_<%=idx %>"><custom:write property="isprotocol" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="isprotocol" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="isprotocol" changedName="oldisprotocol" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("customtype") %>" style="color: red;" id="customtype_<%=idx %>"><custom:write property="customtype" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="customtype" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="customtype" changedName="oldcustomtype" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("channeltype") %>" style="color: red;" id="channeltype_<%=idx %>"><custom:write property="channeltype" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="channeltype" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="channeltype" changedName="oldchanneltype" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("level1") %>" style="color: red;" id="level1_<%=idx %>"><custom:write property="level1" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="level1" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="level1" changedName="oldlevel1" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("parentorgcode") %>" style="color: red;" id="parentorgcode_<%=idx %>"><custom:write property="parentorgcode" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="parentorgcode" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="parentorgcode" changedName="oldparentorgcode" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("parentorgname") %>" style="color: red;" id="parentorgname_<%=idx %>"><custom:write property="parentorgname" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="parentorgname" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="parentorgname" changedName="oldparentorgname" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("countyorgcode") %>" style="color: red;" id="countyorgcode_<%=idx %>"><custom:write property="countyorgcode" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="countyorgcode" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="countyorgcode" changedName="oldcountyorgcode" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("countyorgname") %>" style="color: red;" id="countyorgname_<%=idx %>"><custom:write property="countyorgname" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="countyorgname" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="countyorgname" changedName="oldcountyorgname" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("isparity") %>" style="color: red;" id="isparity_<%=idx %>"><custom:write property="isparity" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="isparity" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="isparity" changedName="oldisparity" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("ismedicalinsurance") %>" style="color: red;" id="ismedicalinsurance_<%=idx %>"><custom:write property="ismedicalinsurance" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="ismedicalinsurance" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="ismedicalinsurance" changedName="oldismedicalinsurance" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("yesornodelivery") %>" style="color: red;" id="yesornodelivery_<%=idx %>"><custom:write property="yesornodelivery" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="yesornodelivery" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="yesornodelivery" changedName="oldyesornodelivery" name="row"   colIndex="<%=idx %>" />
             </td>

              <td>
                <p title="<%=(String)row.get("spellcn") %>" style="color: red;" id="spellcn_<%=idx %>"><custom:write property="spellcn" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="spellcn" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="spellcn" changedName="oldspellcn" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("attr101") %>" style="color: red;" id="attr101_<%=idx %>"><custom:write property="attr101" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="attr101" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="attr101" changedName="oldattr101" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("attr102") %>" style="color: red;" id="attr102_<%=idx %>"><custom:write property="attr102" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="attr102" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="attr102" changedName="oldattr102" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("attr103") %>" style="color: red;" id="attr103_<%=idx %>"><custom:write property="attr103" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="attr103" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="attr103" changedName="oldattr103" name="row"   colIndex="<%=idx %>" />
             </td>
              <td>
                <p title="<%=(String)row.get("attr104") %>" style="color: red;" id="attr104_<%=idx %>"><custom:write property="attr104" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="attr104" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="attr104" changedName="oldattr104" name="row"   colIndex="<%=idx %>" />
              </td>
              <td>
                <p title="<%=(String)row.get("attr105") %>" style="color: red;" id="attr105_<%=idx %>"><custom:write property="attr105" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="attr105" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="attr105" changedName="oldattr105" name="row"   colIndex="<%=idx %>" />
              <td>
      <%} %>
		<%}  %>	  
 

              <%  if (subjectcode.equals("806")){  %>
              <td class="title_center">
              <custom:checkbox property="zylpharmacyapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" />
              </td>
              <td><custom:write property="zylpharmacyapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="approvename" name="usergroup"  nbsp="true"/></td>
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&transactioncode=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&subjectcode=<%=subjectcode%>&batchno=<custom:write name="usergroup" property="batchno"/>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
              <td><custom:write property="orgcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="yl_orgcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="orgname" name="usergroup"  nbsp="true"/></td>
              <custom:hidden property="detailstatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              <%
              HashMap row1=null;
              HashMap row2=null;
              HashMap row3=null;
              HashMap row4=null;
              HashMap row5=null;
              HashMap row6=null;
              HashMap row7=null;
              HashMap row8=null;
              HashMap row9=null;
              HashMap row10=null;

              for(int ii=0;ii<oldptotalsummary.size();ii++){
            	  if(userGroupMap.get("orgcode")!=null){
	            	  if(((String)userGroupMap.get("orgcode")).equals(((String)(((HashMap)oldptotalsummary.get(ii)).get("orgcode"))))){
	            		if(userGroupMap.get("productgroupid1")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid1")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row1=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row1",row1);
	                	  }
	            		}
	            		if(userGroupMap.get("productgroupid3")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid2")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row2=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row2",row2);
	                	  }
	            		}
	            		if(userGroupMap.get("productgroupid3")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid3")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row3=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row3",row3);
	                	  }
	            		}
	            	    if(userGroupMap.get("productgroupid4")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid4")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row4=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row4",row4);
	                	  }
	            	    }
	            	    if(userGroupMap.get("productgroupid5")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid5")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row5=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row5",row5);
	                	  }
	            	    }
	            	    if(userGroupMap.get("productgroupid6")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid6")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row6=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row6",row6);
	                	  }
	            	    }
	            	    if(userGroupMap.get("productgroupid7")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid7")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row7=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row7",row7);
	                	  }
	            	    }
	            	    if(userGroupMap.get("productgroupid8")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid8")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row8=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row8",row8);
	                	  }
	            	    }
	            	    if(userGroupMap.get("productgroupid9")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid9")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row9=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row9",row9);
	                	  }
	            	    }
	            	    if(userGroupMap.get("productgroupid10")!=null){
	            		  if(((Integer)userGroupMap.get("productgroupid10")).equals(((Integer)(((HashMap)oldptotalsummary.get(ii)).get("productgroupid"))))){
	            			  row10=(HashMap)oldptotalsummary.get(ii);
	            			  pageContext.setAttribute("row10",row10);
	                	  }
	            	    }
            	  	}
            	  }
              }
              %>
              <% if(row1 == null) {%>
                 <td><font color="green"><custom:write property="area1" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode1" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname1" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
              <td>
                <p title="<%=(String)row1.get("areaname") %>" style="color: red;" id="area1_<%=idx %>"><custom:write property="area1" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area1" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea1" name="row1"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row1.get("username") %>" style="color: red;" id="contactcode1_<%=idx %>"><custom:write property="contactcode1" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode1" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode1" name="row1"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row1.get("employeename") %>" style="color: red;" id="contactname1_<%=idx %>"><custom:write property="contactname1" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname1" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname1" name="row1"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row2 == null) {
              %>
                 <td><font color="green"><custom:write property="area2" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode2" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname2" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
             <td>
                <p title="<%=(String)row2.get("areaname") %>" style="color: red;" id="area2_<%=idx %>"><custom:write property="area2" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area2" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea2" name="row2"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row2.get("username") %>" style="color: red;" id="contactcode2_<%=idx %>"><custom:write property="contactcode2" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode2" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode2" name="row2"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row2.get("employeename") %>" style="color: red;" id="contactname2_<%=idx %>"><custom:write property="contactname2" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname2" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname2" name="row2"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row3 == null) {
              %>
                 <td><font color="green"><custom:write property="area3" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode3" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname3" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
            <td>
                <p title="<%=(String)row3.get("areaname") %>" style="color: red;" id="area3_<%=idx %>"><custom:write property="area3" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area3" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea3" name="row3"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row3.get("username") %>" style="color: red;" id="contactcode3_<%=idx %>"><custom:write property="contactcode3" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode3" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode3" name="row3"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row3.get("employeename") %>" style="color: red;" id="contactname3_<%=idx %>"><custom:write property="contactname3" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname3" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname3" name="row3"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row4 == null) {
              %>
                 <td><font color="green"><custom:write property="area4" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode4" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname4" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
             <td>
             <td>
                <p title="<%=(String)row4.get("areaname") %>" style="color: red;" id="area4_<%=idx %>"><custom:write property="area4" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area4" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea4" name="row4"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row4.get("username") %>" style="color: red;" id="contactcode4_<%=idx %>"><custom:write property="contactcode4" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode4" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode4" name="row4"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row4.get("employeename") %>" style="color: red;" id="contactname4_<%=idx %>"><custom:write property="contactname4" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname4" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname4" name="row4"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row5 == null) {
              %>
                 <td><font color="green"><custom:write property="area5" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode5" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname5" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
             <td>
           <td>
                <p title="<%=(String)row5.get("areaname") %>" style="color: red;" id="area5_<%=idx %>"><custom:write property="area5" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area5" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea5" name="row5"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row5.get("username") %>" style="color: red;" id="contactcode5_<%=idx %>"><custom:write property="contactcode5" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode5" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode5" name="row5"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row5.get("employeename") %>" style="color: red;" id="contactname5_<%=idx %>"><custom:write property="contactname5" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname5" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname5" name="row5"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row6 == null) {
              %>
                 <td><font color="green"><custom:write property="area6" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode6" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname6" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
            <td>
                <p title="<%=(String)row6.get("areaname") %>" style="color: red;" id="area6_<%=idx %>"><custom:write property="area6" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area6" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea6" name="row6"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row6.get("username") %>" style="color: red;" id="contactcode6_<%=idx %>"><custom:write property="contactcode6" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode6" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode6" name="row6"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row6.get("employeename") %>" style="color: red;" id="contactname6_<%=idx %>"><custom:write property="contactname6" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname6" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname6" name="row6"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row7 == null) {
              %>
                 <td><font color="green"><custom:write property="area7" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode7" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname7" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
             <td>
            <td>
                <p title="<%=(String)row7.get("areaname") %>" style="color: red;" id="area7_<%=idx %>"><custom:write property="area7" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area7" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea7" name="row7"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row7.get("username") %>" style="color: red;" id="contactcode7_<%=idx %>"><custom:write property="contactcode7" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode7" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode7" name="row7"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row7.get("employeename") %>" style="color: red;" id="contactname7_<%=idx %>"><custom:write property="contactname7" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname7" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname7" name="row7"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row8 == null) {
              %>
                 <td><font color="green"><custom:write property="area8" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode8" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname8" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
           <td>
                <p title="<%=(String)row8.get("areaname") %>" style="color: red;" id="area8_<%=idx %>"><custom:write property="area8" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area8" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea8" name="row8"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row8.get("username") %>" style="color: red;" id="contactcode8_<%=idx %>"><custom:write property="contactcode8" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode8" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode8" name="row8"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row8.get("employeename") %>" style="color: red;" id="contactname8_<%=idx %>"><custom:write property="contactname8" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname8" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname8" name="row8"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row9 == null) {
              %>
                 <td><font color="green"><custom:write property="area9" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode9" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname9" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
           <td>
                <p title="<%=(String)row9.get("areaname") %>" style="color: red;" id="area9_<%=idx %>"><custom:write property="area9" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area9" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea9" name="row9"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row9.get("username") %>" style="color: red;" id="contactcode9_<%=idx %>"><custom:write property="contactcode9" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode9" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode9" name="row9"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row9.get("employeename") %>" style="color: red;" id="contactname9_<%=idx %>"><custom:write property="contactname9" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname9" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname9" name="row9"   colIndex="<%=idx %>"/>
              </td>
              <%} %>
               <% 
              if(row10 == null) {
              %>
                 <td><font color="green"><custom:write property="area10" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactcode10" name="usergroup"  nbsp="true"/></font></td>
                 <td><font color="green"><custom:write property="contactname10" name="usergroup"  nbsp="true"/></font></td>
              <%}else{ %>
            <td>
                <p title="<%=(String)row10.get("areaname") %>" style="color: red;" id="area10_<%=idx %>"><custom:write property="area10" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="area10" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="areaname" changedName="oldarea10" name="row10"   colIndex="<%=idx %>"/>
              <td>
                <p title="<%=(String)row10.get("username") %>" style="color: red;" id="contactcode10_<%=idx %>"><custom:write property="contactcode10" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactcode10" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="username" changedName="oldcontactcode10" name="row10"   colIndex="<%=idx %>"/>
              </td>
              <td>
                <p title="<%=(String)row10.get("employeename") %>" style="color: red;" id="contactname10_<%=idx %>"><custom:write property="contactname10" name="usergroup"  nbsp="true"/></p>
                <custom:hidden property="contactname10" name="usergroup"  colIndex="<%=idx %>"/>
                <custom:hidden property="employeename" changedName="oldcontactname10" name="row10"   colIndex="<%=idx %>"/>
              </td>
         <%} %>
            
               


          <% } %>

<% if (subjectcode.equals("902")){  %>
             <td class="title_center">
              <custom:checkbox property="zylpharmacyapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" />
              </td>
              <td><custom:write property="zylpharmacyapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="approvename" name="usergroup"  nbsp="true"/></td>
               <td><custom:write property="detailname" name="usergroup"  nbsp="true"/></td>
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&transactioncode=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&subjectcode=805&batchno=<custom:write name="usergroup" property="batchno"/>&phyflag=1">
              <%= label.getLabelName("L_Approve") %>1
              </a></td>
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&transactioncode=<custom:write name="usergroup" property="zylpharmacyapproveid"/>&subjectcode=806&batchno=<custom:write name="usergroup" property="batchno"/>&phyflag=1">
              <%= label.getLabelName("L_Approve") %>2
              </a></td>
              
              
              
              <td class="title_center"  onclick="editModeText(this,'<%=i%>','approvelcomments','<custom:write name="usergroup" property="zylpharmacyapproveid"/>');" >
                 <custom:write property="approvelcomments" name="usergroup" nbsp="true"/></td>  
              <td><custom:write property="orgcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="yl_orgcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="orgname" name="usergroup"  nbsp="true"/></td>
               <custom:hidden property="basestatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              <td><custom:write property="statusname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="regionname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="cityname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="registeraddress" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="zipcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="telephone" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="fax" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="comments" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="manager" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="turnover" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="ylsaleroom" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="bizarea" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="isprotocol" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="customtype" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="channeltype" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="level1" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="parentorgcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="parentorgname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="countyorgcode" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="countyorgname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="isparity" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="ismedicalinsurance" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="yesornodelivery" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="spellcn" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="attr101" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="attr102" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="attr103" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="attr104" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="attr105" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area1" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode1" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname1" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area2" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode2" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname2" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area3" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode3" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname3" name="usergroup"  nbsp="true"/></td>  
              <td><custom:write property="area4" name="usergroup"  nbsp="true"/></td>           
              <td><custom:write property="contactcode4" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname4" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area5" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode5" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname5" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area6" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode6" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname6" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area7" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode7" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname7" name="usergroup"  nbsp="true"/></td> 
              <td><custom:write property="area8" name="usergroup"  nbsp="true"/></td>           
              <td><custom:write property="contactcode8" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname8" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area9" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode9" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactname9" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area10" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="contactcode10" name="usergroup"  nbsp="true"/></td>
			  <td><custom:write property="contactname10" name="usergroup"  nbsp="true"/></td>
      
        <%}  %>
			  
          

        

        

        
                           
                           
	</tr>

            
    </logic:iterate>  
    
    <input type="hidden" name="zyldealerapproveid" value="<%=JspHelper.filterNull( nDefaultzyldealerapproveid )%>">

    
</span>
<!--		<tr> -->
	<!--			<td colspan="66" align="left"><%= label.getLabelName("L_TotalData") + label.getLabelName("L_Colon") %><custom:write property="count" name="count" nbsp="true"/></td> -->
	<!--		</tr> -->
            <%@ include file="/inc/SummaryActionUP.inc" %>

          </table>
    
 </div>   
    <% //--------------------------------------  page operation button --%>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    	<tr> 
        	<td class="summary_top" ></td>
        </tr>
        <tr> 
        	<td class="td_center"> 
        	<% if (subjectcode.equals("802")||subjectcode.equals("803")||subjectcode.equals("804")||subjectcode.equals("805")||subjectcode.equals("806")||subjectcode.equals("807")||subjectcode.equals("808")||subjectcode.equals("809")||subjectcode.equals("810")||subjectcode.equals("811")||subjectcode.equals("812")){ %>
<!--        	<a onclick="javascript:page_approval()" ><custom:button type="1" label="L_Check" imgsrc="save.gif" border="0" style="width:60"   /></a>-->
        		<a onclick="page_done('agree')"><custom:button type="1" label="L_Agree" imgsrc="new.gif" border="0" style="width:60"/></a>
        		<a onclick="page_done('disagree')"><custom:button type="1" label="L_NotAgree" imgsrc="edit.gif" border="0" style="width:60"/></a>
        		<a onclick="page_done('deny')"><custom:button type="1" label="L_Deny" imgsrc="delete.gif" border="0" style="width:60"/></a>  
        		<%} %>
        		<a onclick="page_back();"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a>      		
        	</td>
        </tr>
  	</table>

</form>
<script>
  var myform = eval("document.usergroupsummaryform");
  <% if (subjectcode.equalsIgnoreCase("805")){  %>
   var arr=["yl_orgcode","statusname","regionname","cityname","registeraddress","zipcode","telephone","fax","comments","manager","turnover","ylsaleroom","bizarea","isprotocol","customtype","channeltype","level1","parentorgcode","parentorgname","countyorgcode","countyorgname","isparity","ismedicalinsurance","yesornodelivery","spellcn","attr101","attr102","attr103","attr104","attr105"];
    for(var i=0;i<<%=userGroupSummary.size()%>;i++){
	for(var j=0;j<arr.length;j++){
		var obj=eval("myform."+arr[j]+i);
		var oldobj=eval("myform.old"+arr[j]+i);
		if(obj!=null)
		{
			if(obj.value==oldobj.value){
			  document.getElementById(arr[j]+"_"+i).style.color="black";
			  document.getElementById(arr[j]+"_"+i).title="";
			}
			if(isEmpty(obj.value) && !isEmpty(oldobj.value)){
			  //document.getElementById(arr[j]+"_"+i).title="";
			  document.getElementById(arr[j]+"_"+i).innerText="空";
			}
		}
		
	}			
   }
 <%}%>

 <% if (subjectcode.equalsIgnoreCase("806")){  %>
  var arr=["area","contactcode","contactname"];
   for(var i=0;i<<%=userGroupSummary.size()%>;i++){
	for(var j=0;j<arr.length;j++){
	  for(var k=1;k<=10;k++){
		var obj=eval("myform."+arr[j]+k+i);
		var oldobj=eval("myform.old"+arr[j]+k+i);
		if(obj!=null)
		{
			if(obj.value==oldobj.value){
			  document.getElementById(arr[j]+k+"_"+i).style.color="black";
			  document.getElementById(arr[j]+k+"_"+i).title="";
			}
		}
		
	 }
	}			
   }
 <%}%>

 
</script>
</body>
</html>


